export default {
  namespaced: true,
  state() {
    return {
      // 令牌
      token: "",
      // 用户信息
      userInfos: {},
    };
  },
  mutations: {
    // 设置token
    SET_TOKEN(state, payload) {
      state.token = payload;
    },
    // 设置用户信息
    SET_USERINFOS(state, payload) {
      state.userInfos = payload;
    },
  },
};
